import time


class QRCodeX:

    def __init__(self):
        self.zhaoqingli = "9999010001A1001"  # 赵清理人二维码
        self.waike = "9999010001B1001"  # 外科
        self.neike = "9999010001B1027"  # 内科
        self.zidonghuakeshi='9999010001B1048'  #自动化科室
        self.zidonghuahushi='9999010001A2080'  #自动化护士
        self.qianhushi = "9999010001A2001"  # 钱护士
        self.zancunjian = "9999010001B2001"  # 暂存间
        self.sunchuzhi = "9999010001A3001"  # 孙处置

    #
    def box_id(self, n):
        if n == 1:
            box = "2330600990023528"
        elif n == 2:
            box = "233060099002367A"
        elif n == 3:
            box = "233060099002373A"
        elif n == 4:
            box = "23306009900238ED"
        elif n == 5:
            box = "233060099002393C"
        elif n == 6:
            box = "2330600990023A30"
        elif n == 7:
            box = "2330600990023B1C"
        elif n == 8:
            box = "2330600990023CA7"
        elif n == 9:
            box = "2330600990023D14"
        elif n == 10:
            box = "2330600990023E2A"
        elif n == 11:
            box = '2330600990023FDA'
        elif n == 12:
            box = '233060099002402B'
        elif n == 13:
            box = '23306009900241A4'
        elif n == 14:
            box = '23306009900242DF'
        elif n == 15:
            box = '2330600990024392'
        elif n == 16:
            box = '2330600990024430'
        elif n == 17:
            box = '233060099002451E'
        elif n == 18:
            box = '2330600990024684'
        elif n == 19:
            box = '23306009900247C0'
        elif n == 20:
            box = '2330600990024804'
        elif n == 21:
            box = '23306009900249A5'

        elif n == 22:
            box = '2330600990024A6C'
        elif n == 23:
            box = '2330600990024B75'
        elif n == 24:
            box = '2330600990024C20'
        elif n == 25:
            box = '2330600990024D37'
        elif n == 26:
            box = '2330600990024E43'
        elif n == 27:
            box = '2330600990024F05'
        return box

    # def box_id(self,n):
    #     with open(r"D:\rj自动化\GUI_Appium\date\box_id.csv", encoding='utf-8') as file:
    #         content = file.readlines()
    #
    #         for i in content:
    #             self.choose_type(i.strip())
    #             # m=i.strip()
    #             time.sleep(3)
    #             self.print_bags()
    #
    #             m = i.strip()
    #             new = f"，{m}"
    #             # new=f"{m}{weight_text}"
    #             # print(new)
    #             try:
    #                 self.driver.find_element_by_android_uiautomator(f'new UiSelector().textContains("{new}")')
    #                 print(f"打印{m}垃圾成功")
    #                 AndroidUI().write_result(f"打印医废类型为{m}的垃圾", "成功")
    #             except:
    #                 print(f"打印{m}垃圾失败")
    #                 AndroidUI().write_result(f"打印医废类型为{m}的垃圾", "失败")
    #                 AndroidUI.capture()


if __name__ == '__main__':
    a = QRCodeX()
    b = a.box_id(1)
    c = a.box_id(2)
    d = a.box_id(3)
    print(b)
    print(c)
    print(d)

    # print(b)

#
# # from common.unit import AndroidUI
# from case.login.login import Login
#
#
# class rQRCod4eX:
#
#     def __init__(self):
#         self.zhaoqingli="9999010001A1001"      #赵清理人二维码
#         self.waike="9999010001B1001"        #外科
#         self.qianhushi="9999010001A2001"        #钱护士
#         self.zancunjian="9999010001B2001"   #暂存间
#         self.sunchuzhi="9999010001A3001"    #孙处置
#         # self.driver=AndroidUI.get_webdriver()
#         # self.lo=Login()
#
#     # def login(self):
#     #     self.lo.cleaner_login()
#
#
#
#
# if __name__ == '__main__':
#     # qr=QRCodeX()
#     pass
#     # qr.login()
